package com.mall.goods.model.entity;


import com.mall.common.annotation.Excel;
import com.mall.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

@Setter
@Getter
@ApiModel("商品表")
public class GoodsEntity extends BaseEntity
{

    @ApiModelProperty("商品表主键id")
    private Long id;

    @ApiModelProperty("商品名称")
    @Excel(name = "商品名称")
    private String goodsName;

    @ApiModelProperty("商品简介")
    @Excel(name = "商品简介")
    private String goodsIntro;

    @ApiModelProperty("商品分类id")
    @Excel(name = "商品分类id")
    private Long goodsCategoryId;

    @ApiModelProperty("商品主图")
    @Excel(name = "商品主图")
    private String goodsCoverImg;

    @ApiModelProperty("商品轮播图")
    @Excel(name = "商品轮播图")
    private String goodsCarousel;

    @ApiModelProperty("商品详情")
    @Excel(name = "商品详情")
    private String goodsDetailContent;

    @ApiModelProperty("商品原价")
    @Excel(name = "商品原价")
    private BigDecimal originalPrice;

    @ApiModelProperty("商品售价")
    @Excel(name = "商品售价")
    private BigDecimal sellingPrice;

    @ApiModelProperty("商品库存数量")
    @Excel(name = "商品库存数量")
    private Long stockNum;

    @ApiModelProperty("商品标签")
    @Excel(name = "商品标签")
    private String tag;

    @ApiModelProperty("商品上架状态")
    @Excel(name = "商品上架状态 0-下架 1-上架")
    private String status;

    @ApiModelProperty("排序号")
    @Excel(name = "排序号")
    private Long sortNum;

    @ApiModelProperty("创建者id")
    @Excel(name = "创建者id")
    private Long createId;

    @ApiModelProperty("是否需要课程 (0 否 1 是)")
    private String needCourseFlag;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 规格标志（0代表单规格 1代表多规格） */
    private String specsFlag;


}
